<template>
	<view >
		<view v-if="chatlist.length==0">
			<u-empty marginTop="100" text="数据为空"></u-empty>
		</view>
		<view class="bgfff dsf jcsb alc h130 bbe1 pl20 pr20" v-for="(item,index) in chatlist" :key="index">
			<view class="w80 h80">
				<image mode class="w80 h80 bdra50b" :src="$imgSrc('static/images/vx.png')" ></image>
			</view>
			<view class="fg1 bsbox pl24">
				<view class="dsf alc jcsb">
					<view class="fz30 col333">
						{{item.driver_name}}</view>
					<view class="fz24 col999">{{item.created_at}}</view>
				</view>
				<view class="pt14" style="height:34rpx;">
					<!-- <view class="fz24 col333" >{{'['+item.m2+']'}}
					</view> -->
					<block>
						<view class="fz24 col333 onehide">
							{{item.content}}</view>
					</block>
				</view>
			</view>
		</view>
		<st-tabbar :tabbar="tabbar"></st-tabbar>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				tabbar: {
					current: 2
				},
				user: !1,
				chat_list: [{
					driver_name:"吴师傅",
					created_at:"08：40",
					content:"嗯嗯你说",
					m2: 0
				},{
					driver_name:"李师傅",
					created_at:"18：32",
					content:"我到刊江大道了，你在哪",
					m2: 0
				},{
					driver_name:"王师傅",
					created_at:"2022/12/14",
					content:"最多三分钟",
					m2: 0
				}],
				chatlist:[],
				page: 1,
				last_page: 0
			}
		},
		onLoad() {

		},
		onShow() {

		},

		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.login {
		border: 1upx solid #0083fe;
		border-radius: 10upx;
		color: #0083fe;
		margin-top: 20upx;
		padding: 10upx 30upx
	}
</style>